import React from 'react';
import Home from './pages/Home';
import Book from './pages/Book';
import Found from './pages/Found';
import Mine from './pages/Mine';
import Netdisk from './pages/Netdisk';
import NetdiskAndroidSetting from './pages/Netdisk/Android/Setting';
import NetdiskAndroidSelf from './pages/Netdisk/Android/Self';

import LoginCheck from './pages/LoginCheck';
import Login from './pages/Login';

import MinePerson from './pages/Mine/Person';
import MineService from './pages/Mine/Service';
import MineSetting from './pages/Mine/Setting';
import MineSettingSetPassword from './pages/Mine/Setting/SetPassword';

import MinePersonSetNickname from './pages/Mine/Person/SetNickname';

export default new Map([
  [
    'Home',
    {category: 'mainTab', name: '首页', component: <Home />, iconName: 'Home'},
  ],
  [
    'Netdisk',
    {
      category: 'mainTab',
      name: '网盘',
      component: (
        <LoginCheck>
          <Netdisk />
        </LoginCheck>
      ),
      iconName: 'Netdisk',
    },
  ],
  [
    'Found',
    {
      category: 'mainTab',
      name: '发现',
      component: <Found />,
      iconName: 'Found',
    },
  ],
  [
    'Book',
    {
      category: 'mainTab',
      name: '通讯录',
      component: <Book />,
      iconName: 'Book',
    },
  ],
  [
    'Mine',
    {
      category: 'mainTab',
      name: '我',
      component: (
        <LoginCheck>
          <Mine />
        </LoginCheck>
      ),
      // component: <Mine />,
      iconName: 'Mine',
    },
  ],
  ['Login', {category: 'special', name: '登录页', component: <Login />}],
  // ['Login', {category: 'ordinary', name: '', component: <Login />}],
  [
    'NetdiskAndroidSetting',
    {
      category: 'special',
      name: '设置备份目录',
      component: (
        <LoginCheck>
          <NetdiskAndroidSetting />
        </LoginCheck>
      ),
      noSliceGoBack: true, //禁止左右滑动返回
    },
  ],
  [
    'NetdiskAndroidSelf',
    {
      category: 'ordinary',
      name: '本机文件',
      component: (
        <LoginCheck>
          <NetdiskAndroidSelf />
        </LoginCheck>
      ),
      noSliceGoBack: true, //禁止左右滑动返回
    },
  ],
  [
    'MinePerson',
    {
      category: 'ordinary',
      name: '个人信息设置',
      component: (
        <LoginCheck>
          <MinePerson />
        </LoginCheck>
      ),
    },
  ],
  [
    'MineService',
    {
      category: 'ordinary',
      name: '服务',
      component: (
        <LoginCheck>
          <MineService />
        </LoginCheck>
      ),
    },
  ],
  [
    'MineSetting',
    {
      category: 'ordinary',
      name: '设置',
      component: (
        <LoginCheck>
          <MineSetting />
        </LoginCheck>
      ),
    },
  ],
  [
    'MinePersonSetNickname',
    {
      category: 'special',
      name: '设置昵称',
      component: (
        <LoginCheck>
          <MinePersonSetNickname />
        </LoginCheck>
      ),
    },
  ],
  [
    'MineSettingSetPassword',
    {
      category: 'special',
      name: '设置登录密码',
      component: (
        <LoginCheck>
          <MineSettingSetPassword />
        </LoginCheck>
      ),
    },
  ],
]);
